/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.gl.tp2;

/**
 *
 * @author wadi3
 */
import java.io.*;
public class SerializerPersonne {
public static void main(String argv[]) {
Personne personne = new Personne("Dupond","Jean",175);
try {
FileOutputStream fichier = new FileOutputStream("personne.ser");
ObjectOutputStream oos = new ObjectOutputStream(fichier);
oos.writeObject(personne);
oos.flush();
oos.close();}
catch (java.io.IOException e) {e.printStackTrace();}}}
